<template>
    <div class='policies_box infor_box'>
      <!-- 标题 -->
      <div class="server_titleBox">
          <div class="server_title">
            <span class="line"></span>
            <span class="main_titles">政策法规</span>
            <span class="line"></span>
          </div>
          <p class="under_title">Policies and regulations</p>
      </div>
      <!-- 法规内容 -->
      <div class="policies_content">
           <div class="much"><nuxt-link to="./policies/notice">更多 >></nuxt-link></div>
           <div class="policies_detail">
              <div class='detail_left'>
                     <img src="./../../../static/img/index/fagui.png" alt="">
              </div>
              <div class="detail_right">
                  <ul style="min-height:261px;max-height:261px;overflow:hidden;">
                <!--      <li v-for="(item,index) in listData" :key="index">
                      <span>公示公告</span>
                      <router-link  :to="'/policies/notice/'+item.id">
                          <h2>{{item.contentTitle}}</h2>
                        </router-link>

                    </li> -->
                    <li v-for="(item,index) in listData" :key="index" >
                      <span v-if="item.contentType==54">公示公告</span>
                      <span v-if="item.contentType==55">国家政策</span>
                      <span v-if="item.contentType==56">省内政策</span>
                      <router-link v-if="item.contentType==54" :to="'/policies/notice/'+item.contentId">
                          <h2>{{item.contentTitle}}</h2>
                        </router-link>
                      <router-link v-if="item.contentType==55" :to="'/policies/country/'+item.contentId">
                        <h2>{{item.contentTitle}}</h2>
                      </router-link>
                      <router-link v-if="item.contentType==56" :to="'/policies/province/'+item.contentId">
                        <h2>{{item.contentTitle}}</h2>
                      </router-link>
                    </li>
                  </ul>
              </div>
           </div>
      </div>
      <!-- 重点企业 -->
       <div class="company infor_box">
          <div class="title">
             <span class="line"></span>
             <span>重点企业</span>
          </div>
          <div class="company_pic">
            <ul>
               <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic1.png" alt="">
                </a>
              </li>
              <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic2.png" alt="">
                </a>
              </li>
              <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic3.png" alt="">
                </a>
              </li>
              <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic4.png" alt="">
                </a>
              </li>
              <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic5.png" alt="">
                </a>
              </li>
               <li>
                <a href="javascript:;">
                    <img src="./../../../static/img/index/pic6.png" alt="">
                </a>
              </li>
            </ul>
          </div>
       </div>
       <!-- 网站链接 -->
       <div class="link infor_box company">
          <div class="title">
             <span class="line"></span>
             <span>网站链接</span>
          </div>
          <!-- 链接 -->
          <div class="link_box">
            <ul>
              <li><a target="_banlk" href="http://www.bofcom.gov.cn/">云南省商务厅</a></li>
              <li><a target="_banlk" href="http://www.ynjtt.gov.cn/">云南省交通运输厅</a></li>
              <li><a target="_banlk" href="http://www.logink.org/">国家交通运输物流公共信息平台</a></li>
              <li><a target="_banlk" href="http://www.customs.gov.cn/">中华人民共和国海关总署</a></li>
              <li><a target="_banlk" href="http://www.clic.org.cn/">中国物流信息中心</a></li>
            </ul>
          </div>
       </div>
    </div>
</template>
<script>
import { policiesData } from '@/utils/policiesData'
export default {
    data() {
      return {
        // listData: policiesData.notice.slice(0,4)
        listData:[]
      }
    },
    beforeCreate() {
    },
  created(){
    this.tofindNews()
  },
  methods:{
    //新闻查询
      async tofindNews () {
          const res = await this.$store.dispatch('news/tofindNews',{
          pageSize: 10,
          pageNum: 1,
          contentCode:16
    
          })
          if (res.status) {
            this.listData = res.data.rows;


          } 
      },
  }
  }
</script>
<style lang="scss" >

</style>